# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-settings-daemon
pkgver=3.36.1
pkgrel=0
pkgdesc="GNOME settings daemon"
url="https://gitlab.gnome.org/GNOME/gnome-settings-daemon"
arch="all !s390x !mips !mips64"
options="!check" # needs unpackaged py-dbusmock
license="GPL-2.0-only AND LGPL-2.1-only"
depends_dev="gnome-desktop-dev libnotify-dev
	libcanberra-dev colord-dev geoclue-dev
	libgweather-dev geocode-glib-dev
	pulseaudio-dev upower-dev libwacom-dev
	cups-dev networkmanager-dev polkit-dev
	lcms2-dev nss-dev alsa-lib-dev gcr-dev
	modemmanager-dev"
makedepends="$depends_dev libxml2-utils meson"
checkdepends="py3-gobject3"
depends="pulseaudio"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/gnome-settings-daemon/${pkgver%.*}/gnome-settings-daemon-$pkgver.tar.xz
	dont-use-logind-for-brightness-changing.patch"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--buildtype=plain \
		-Dsystemd=false \
		. output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="f2f43d9b772589b6b4212ee2b0afe8be79d50a2e0473a960c7a7b9d379222bbe84ca548114d0a247810a094b4b3bf41e40ca91173c6cf552517dc63eb3750c88  gnome-settings-daemon-3.36.1.tar.xz
b5e58ac820d6cc66366d39d6a69f374a4734437317b8a491fdae25a2cb68b8aaf5e3bd9e73b8110768441bdb38d747692829cf1b05dfc84835d726273044c5b8  dont-use-logind-for-brightness-changing.patch"
